﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Promotion.ascx.vb" Inherits="FrontEnd_Control_Promotion" %>

<script type="text/javascript">
    function ajaxJquery() {
        $(function () {

            $(".btn_detail").click(function () {
                location.href = $(this).parent().parent().find("a").attr("href");
                return false;
            });
            $(".thumb_imgshopproduct").click(function () {
                location.href = $(this).parent().find("a").attr("href");
                return false;
            });

        });
    }
</script>

<asp:UpdatePanel ID="uplProductByCate" runat="server">
    <ContentTemplate>

<div class="box_porletright">
            <div class="bgtitle_porletright">
                <div class="texttitle_porletright"><h1><asp:HyperLink ID="hplCate" runat="server"></asp:HyperLink></h1></div>
            </div>

            <div class="bgmid_porletright">
                <asp:Repeater ID="rptProduct" runat="server">
                    <ItemTemplate>
                        <div class="bgcell_product">
                                <div class="title_product">
                                  <h3><asp:HyperLink ID="hplTitle" runat="server" CssClass="title_product"></asp:HyperLink></h3>  
                                </div>
                                                        
                            
                                <div class="thumb_imgshopproduct">
                                   <h4><asp:Image ID="img" border="0"  align="absmiddle" runat="server" /></h4>
                                </div>

                                <p class="code_product">
                                     <asp:Literal ID="ltrCodeProduct" runat="server"></asp:Literal> 
                                </p>
                                <p class="price_product">
                                    Giá : <span><asp:Literal ID="ltrPrice" runat="server"></asp:Literal></span></p>
                                <asp:Button ID="btnAddCart" runat="server" CssClass="btn_buy" Text="Add cart" OnClick="btnAddCart_Click"  /> 
                                <asp:Button id="btnDetail" runat="server" Text="Details" CssClass="btn_detail" />
                                
                            
                          </div>
                    </ItemTemplate>
                </asp:Repeater>                                          
                    <div class="clear_both" style="height:5px;"></div>
                             
             <!--phan trang-->
            <div id="results_resultsNavigationDiv" class="pagination" runat="server">
                <ul>
                    <asp:LinkButton ID="lnkFirst" runat="server"><<</asp:LinkButton>
                    <asp:Repeater ID="rptPage" runat="server">
                        <ItemTemplate>
                            <li><asp:LinkButton ID="lnkTitle" runat="server" OnClick="lnkTitle_Click"></asp:LinkButton></li> 
                        </ItemTemplate>
                    </asp:Repeater>
                    <asp:LinkButton ID="lnkLast" runat="server">>></asp:LinkButton>
                </ul>   
            </div>
            <asp:HiddenField ID="hidCount" Value="0" runat="server" />
            <asp:HiddenField ID="hidIndex_page" Value="0" runat="server" />
            <asp:HiddenField ID="hidCur_Page" Value="1" runat="server" />
            <asp:HiddenField ID="hidStoreId" Value="0" runat="server" />
            <asp:HiddenField ID="hidCateId" Value="0" runat="server" />
                            

                                          
            </div>
            <div class="bgbottom_porletright"></div>
    </div>
</ContentTemplate>
</asp:UpdatePanel>

